<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core"
                xmlns:constants="http://www.tuanzi.com/constants/tags"
                xmlns:security="http://www.springframework.org/security/tags"
                template="/templates/template.xhtml">
    <ui:define name="title">渠道信息</ui:define>
    <ui:define name="content">
        <h:form id="incomeForm">
            <div class="topbar clearfix"
                 style="background: -webkit-linear-gradient(top,#f6f7f9 0,#ebedf0 100%);">
                <p:toolbar>
                    <f:facet name="right">
                        <p:commandButton value="编辑" icon="fa fa-edit"
                                         actionListener="#{businessProductInfoBean.changeStatusToEdit}"
                                         process="@this"
                                         update="@form" rendered="#{businessProductInfoBean.isView() and security:areAllGranted('BUSINESS_SECURITY')}"/>
                        <p:commandButton value="保存" icon="fa fa-save"
                                         actionListener="#{businessProductInfoBean.onSave()}"
                                         update="@form"
                                         rendered="#{(businessProductInfoBean.isAdd() || businessProductInfoBean.isEdit()) and security:areAllGranted('BUSINESS_SECURITY')}"/>
                        <p:commandButton icon="fa fa-reply-all" value="返回"
                                         action="#{businessProductInfoBean.onReturn(currentUserBean.back)}"
                                         process="@this"/>
                    </f:facet>
                </p:toolbar>
            </div>
            <div class="ui-g ui-fluid" style="padding-top: 30px;">
                <div class="ui-g-12 ">
                    <div class="ui-g-12 card">
                        <h1>基础信息</h1>
                        <h:panelGroup id="pay-panel">
                            <div class="ui-g-1">
                                <p:outputLabel value="渠道ID"/>
                            </div>
                            <div class="ui-g-3">
                                <p:inputText id="channelId" value="#{businessProductInfoBean.$.channelId}"
                                             disabled="#{businessProductInfoBean.isView()}"/>
                            </div>
                            <div class="ui-g-1">
                                <p:outputLabel value="渠道名称"/>
                            </div>
                            <div class="ui-g-3">
                                <p:inputText id="channelName" value="#{businessProductInfoBean.$.channelName}"
                                             disabled="#{businessProductInfoBean.isView()}"/>
                            </div>


                            <div class="ui-g-1">
                                <p:outputLabel value="结算方式"/>
                            </div>
                            <div class="ui-g-3">
                                <p:selectOneMenu id="settlementMode" value="#{businessProductInfoBean.$.payMode}"
                                                 disabled="#{businessProductInfoBean.isView()}">
                                    <p:ajax event="change"
                                            update="pay"/>
                                    <f:selectItem itemLabel="- 请选择 -" itemValue=""
                                                  noSelectionOption="true"/>
                                    <f:selectItems
                                            value="#{businessProductInfoBean.dictionaries[DictionaryCode.SETTLEMENT_CATEGORY]}"
                                            var="dic"
                                            itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
                                </p:selectOneMenu>
                            </div>
                            <h:panelGroup id="pay">
                                <div class="ui-g-1">
                                    <p:outputLabel for="pricePay" value="结算价格(元)" disabled="#{businessProductInfoBean.isView()}" rendered="#{businessProductInfoBean.$.payMode==1
                                || businessProductInfoBean.$.payMode==2
                                || businessProductInfoBean.$.payMode==3
                                || businessProductInfoBean.$.payMode==4
                                || businessProductInfoBean.$.payMode==7}"/>
                                </div>
                                <div class="ui-g-3">
                                    <p:inputText id="pricePay" value="#{businessProductInfoBean.$.pricePay}"
                                                 disabled="#{businessProductInfoBean.isView()}" rendered="#{businessProductInfoBean.$.payMode==1
                                || businessProductInfoBean.$.payMode==2
                                || businessProductInfoBean.$.payMode==3
                                || businessProductInfoBean.$.payMode==4
                                || businessProductInfoBean.$.payMode==7}"/>
                                </div>
                            </h:panelGroup>

                            <div class="ui-g-1">
                                <p:outputLabel value="渠道分类"/>
                            </div>
                            <div class="ui-g-3">
                                <p:selectOneMenu id="channelType" value="#{businessProductInfoBean.$.channelType}"
                                                 disabled="#{businessProductInfoBean.isView()}">
                                    <f:selectItem itemLabel="- 请选择 -" itemValue=""
                                                  noSelectionOption="true"/>
                                    <f:selectItems value="#{businessProductInfoBean.dictionaries[DictionaryCode.CHANNEL_TYPE]}"
                                                   var="dic"
                                                   itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
                                </p:selectOneMenu>
                            </div>

                            <div class="ui-g-1">
                                <p:outputLabel value="所属产品"/>
                            </div>
                            <div class="ui-g-3">
                                <p:selectOneMenu id="belongApp" value="#{businessProductInfoBean.$.belongAppId}"
                                                 disabled="#{businessProductInfoBean.isView()}">
                                    <f:selectItem itemLabel="- 请选择 -" itemValue=""
                                                  noSelectionOption="true"/>
                                    <f:selectItems value="#{businessProductInfoBean.commProductIds}"
                                                   var="dic"
                                                   itemLabel="#{dic.name}" itemValue="#{dic.productId}"/>
                                </p:selectOneMenu>
                            </div>

                            <div class="ui-g-1">
                                <p:outputLabel value="合作模式"/>
                            </div>
                            <div class="ui-g-3">
                                <p:selectOneMenu id="copMode" value="#{businessProductInfoBean.$.copMode}"
                                                 disabled="#{businessProductInfoBean.isView()}">
                                    <f:selectItem itemLabel="- 请选择 -" itemValue=""
                                                  noSelectionOption="true"/>
                                    <f:selectItems
                                            value="#{businessProductInfoBean.dictionaries[DictionaryCode.COOPERATION_MODE]}"
                                            var="dic"
                                            itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
                                </p:selectOneMenu>
                            </div>
                            <div class="ui-g-1">
                                <p:outputLabel value="所属主体"/>
                            </div>
                            <div class="ui-g-3">
                                <p:selectOneMenu value="#{businessProductInfoBean.$.companyId}"
                                                 filter="true" updateLabel="true"
                                                 filterMatchMode="contains"
                                                 disabled="#{businessProductInfoBean.isView()}">
                                    <f:selectItem itemLabel="- 请选择 -" itemValue=""
                                                  noSelectionOption="true"/>
                                    <f:selectItems value="#{businessProductInfoBean.companyList}"
                                                   var="dic"
                                                   itemLabel="#{dic.channelMain}" itemValue="#{dic.id}"/>
                                </p:selectOneMenu>
                            </div>
                            <div class="ui-g-1">
                                <p:outputLabel value="结算类别"/>
                            </div>
                            <div class="ui-g-3">
                                <p:selectOneMenu id="payfor" value="#{businessProductInfoBean.$.payType}"
                                                 disabled="#{businessProductInfoBean.isView()}">
                                    <f:selectItem itemLabel="- 请选择 -" itemValue=""
                                                  noSelectionOption="true"/>
                                    <f:selectItems
                                            value="#{businessProductInfoBean.dictionaries[DictionaryCode.SETTLEMENT_CYCLE]}"
                                            var="dic"
                                            itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
                                </p:selectOneMenu>
                            </div>

                            <div class="ui-g-12 padding0">
                                <div class="ui-g-2">
                                    <p:outputLabel for="remark" value="备注"/>
                                </div>
                                <div class="ui-g-10">
                                    <p:inputText id="remark" value="#{businessProductInfoBean.$.remark}"
                                                 disabled="#{businessProductInfoBean.isView()}"/>
                                </div>
                            </div>
                        </h:panelGroup>

                    </div>

                    <p:outputPanel styleClass="ui-g-12 padding0" rendered="#{businessProductInfoBean.incomeRequest.channelId != null}">

                        <div class="ui-g-12 card">
                            <div class="" style="background: -webkit-linear-gradient(top,#f6f7f9 0,#ebedf0 100%);margin-bottom: 10px">
                                <p:toolbar>
                                    <f:facet name="left">
                                        <p:commandButton id="toggler" type="button" value="展示选择"
                                                         style="width: auto;"
                                                         icon="ui-icon-calculator"/>
                                        <p:columnToggler datasource="statisticRecordDataTable" trigger="toggler"/>
                                    </f:facet>
                                    <f:facet name="right">
                                        <p:commandButton value="新增" actionListener="#{businessIncomeListBean.onAdd(businessProductInfoBean.$.id)}"
                                                         oncomplete="PF('adding').show();" process="@this" update="@form"
                                                         icon="fa fa-plus" rendered="#{security:areAllGranted('BUSINESS_SECURITY')}">
                                        </p:commandButton>
                                        <p:commandButton id="search" value="查询" icon="fa fa-search"
                                                         update="statisticRecordDataTable" ajax="true"/>
                                        <p:commandButton value="重置" actionListener="#{businessProductInfoBean.onReset()}"
                                                         icon="fa fa-refresh"
                                                         process="@this" update="@form"/>
                                        <p:commandButton value="导出" icon="fa fa-download"
                                                         ajax="false">
                                            <p:dataExporter type="xls" target="statisticRecordDataTable" fileName="消耗记录"/>
                                        </p:commandButton>
                                    </f:facet>
                                </p:toolbar>
                            </div>
                            <h1>查询条件</h1>
                            <div class="ui-g-1">
                                <p:outputLabel value="结算时间"/>
                            </div>
                            <div class="ui-g-3">
                                <p:calendar
                                        id="startTime" styleClass="autoWidthCalendar"
                                        value="#{businessProductInfoBean.incomeRequest.startTime}"
                                        locale="#{constants:get('LOCALE')}"
                                        timeZone="#{constants:get('TIME_ZONE')}"
                                        pattern="#{constants:get('DATE_FORMAT')}"/>
                                <span>—</span>
                                <p:calendar
                                        id="endTime" styleClass="autoWidthCalendar"
                                        value="#{businessProductInfoBean.incomeRequest.endTime}"
                                        locale="#{constants:get('LOCALE')}"
                                        timeZone="#{constants:get('TIME_ZONE')}"
                                        pattern="#{constants:get('DATE_FORMAT')}"/>
                            </div>
                            <p:dataTable id="statisticRecordDataTable"
                                         style="width: 120%;text-align:center"
                                         var="record"
                                         value="#{businessProductInfoBean.incomeResponseLazyDataModel}"
                                         rows="#{constants:get('ROWS')}"
                                         lazy="true"
                                         paginator="true"
                                         paginatorTemplate="#{constants:get('PAGINATOR_TEMPLATE')}"
                                         rowsPerPageTemplate="#{constants:get('ROWS_PER_PAGE_TEMPLATE')}"
                                         emptyMessage="#{constants:get('EMPTY_MESSAGE')}"
                                         scrollable="true"
                                         scrollWidth="98%"
                                         reflow="true"
                                         selection=""
                                         resizableColumns="true">
                                <p:column headerText="操作" exportable="false" rendered="#{security:areAllGranted('BUSINESS_SECURITY')}">
                                    <p:splitButton icon="fa fa-eye"
                                                   process="@this"
                                                   actionListener="#{businessIncomeListBean.onSee(record.id)}"
                                                   oncomplete="PF('adding').show();" update="@form" rendered="#{security:areAllGranted('BUSINESS_SECURITY')}">
                                        <p:menuitem value="删除" icon="fa fa-remove"
                                                    actionListener="#{businessIncomeListBean.onDelete(record.id)}"
                                                    process="@this" update="@form" rendered="#{security:areAllGranted('BUSINESS_SECURITY')}">
                                            <p:confirm header="提示信息" message="是否确定删除?" icon="ui-icon-alert"/>
                                        </p:menuitem>
                                    </p:splitButton>
                                </p:column>
                                <p:column headerText="结算时间" style="text-align:center;width: 70px">
                                    <h:outputText value="#{record.settlementTime}">
                                        <f:convertDateTime pattern="#{constants:get('DATE_FORMAT')}"/>
                                    </h:outputText>
                                </p:column>
                                <p:column headerText="渠道ID">
                                    <h:outputText value="#{record.channelId}"/>
                                </p:column>
                                <p:column headerText="渠道名称">
                                    <h:outputText value="#{record.channelName}"/>
                                </p:column>
                                <p:column headerText="所属产品">
                                    <h:outputText value="#{businessProductInfoBean.translateProduct(record.belongAppId)}"/>
                                </p:column>
                                <p:column headerText="渠道分类" style="text-align:center;">
                                    <h:outputText
                                            value="#{businessProductInfoBean.translate(DictionaryCode.CHANNEL_TYPE,record.channelType)}"/>
                                </p:column>
                                <p:column headerText="合作模式" style="text-align:center;">
                                    <h:outputText
                                            value="#{businessProductInfoBean.translate(DictionaryCode.COOPERATION_MODE,record.copMode)}"/>
                                </p:column>
                                <p:column headerText="结算方式" style="text-align:center;">
                                    <h:outputText
                                            value="#{businessProductInfoBean.translate(DictionaryCode.SETTLEMENT_CATEGORY,record.payMode)}"/>
                                </p:column>
                                <p:column headerText="结算类别" style="text-align:center;">
                                    <h:outputText
                                            value="#{businessProductInfoBean.translate(DictionaryCode.SETTLEMENT_CYCLE,record.payType)}"/>
                                </p:column>

                                <p:column headerText="结算单价(元)" style="text-align:center;">
                                    <h:outputText value="#{record.pricePay == null ?'-':record.pricePay}">
                                        <f:convertNumber pattern="###0.000"/>
                                    </h:outputText>
                                </p:column>
                                <p:column headerText="结算数" style="text-align:center;">
                                    <h:outputText value="#{record.count == null ?'-': record.count}"/>
                                </p:column>
                                <p:column headerText="结算金额" style="text-align:center;">
                                    <h:outputText value="#{record.incomeAmount}">
                                        <f:convertNumber pattern="###0.00"/>
                                    </h:outputText>
                                </p:column>
                                <p:column headerText="实际注册" style="text-align:center;">
                                    <h:outputText value="#{record.realRegister == null ?'-': record.realRegister}"/>
                                </p:column>
                                <p:column headerText="实际成本" style="text-align:center;">
                                    <h:outputText value="#{record.realRegister == null ?'-': record.incomeAmount/record.realRegister}">
                                        <f:convertNumber pattern="###0.00"/>
                                    </h:outputText>
                                </p:column>
                                <p:column headerText="登录数" style="text-align:center;">
                                    <h:outputText value="#{record.loginCount == null ?'-': record.loginCount}"/>
                                </p:column>
                                <p:column headerText="登陆成本" style="text-align:center;">
                                    <h:outputText value="#{record.loginCount == null ?'-': record.incomeAmount/record.loginCount}">
                                        <f:convertNumber pattern="###0.00"/>
                                    </h:outputText>
                                </p:column>
                                <p:column headerText="参与uv(截流前)" style="text-align:center;">
                                    <h:outputText value="#{record.beforeRealCost == null ?'-': record.beforeRealCost}"/>
                                </p:column>
                                <p:column headerText="参与uv成本" style="text-align:center;">
                                    <h:outputText value="#{record.beforeRealCost == null ?'-': record.incomeAmount/record.beforeRealCost}">
                                        <f:convertNumber pattern="###0.00"/>
                                    </h:outputText>
                                </p:column>
                                <p:column headerText="创建人" style="text-align:center;">
                                    <h:outputText value="#{record.creator}"/>
                                </p:column>
                                <p:column headerText="创建时间" style="text-align:center;width: 100px">
                                    <h:outputText value="#{record.createTime}">
                                        <f:convertDateTime pattern="#{constants:get('DATETIME_FORMAT')}"/>
                                    </h:outputText>
                                </p:column>
                            </p:dataTable>
                        </div>

                    </p:outputPanel>

                </div>
            </div>
            <p:dialog header="#{businessIncomeListBean.header}" widgetVar="adding" modal="true" closable="true"
                      resizable="true"
                      style="position: absolute;">
                <p:outputPanel id="add-dialog">
                    <div class="ui-g ui-fluid" style="width:1000px;">
                        <div class="ui-g-2">
                            <p:outputLabel value="渠道名称"/>
                        </div>
                        <div class="ui-g-4">
                            <p:selectOneMenu value="#{businessIncomeListBean.id}"
                                             filter="true" updateLabel="true"
                                             filterMatchMode="contains">
                                <p:ajax event="change" listener="#{businessIncomeListBean.onSelectProduct()}"
                                        process="@this" update="add-dialog"/>
                                <f:selectItem itemLabel="- 请选择 -" itemValue=""
                                              noSelectionOption="true"/>
                                <f:selectItems value="#{businessIncomeListBean.productList}"
                                               var="dic"
                                               itemLabel="#{dic.channelName}(#{dic.channelId})" itemValue="#{dic.id}"/>
                            </p:selectOneMenu>
                        </div>
                        <div class="ui-g-2">
                            <p:outputLabel value="主体名称"/>
                        </div>
                        <div class="ui-g-4">
                            <p:selectOneMenu value="#{businessIncomeListBean.settlementIncome.channelMain}"
                                             filter="true" updateLabel="true"
                                             filterMatchMode="contains">
                                <f:selectItem itemLabel="- 请选择 -" itemValue=""
                                              noSelectionOption="true"/>
                                <f:selectItems value="#{businessIncomeListBean.companyList}"
                                               var="dic"
                                               itemLabel="#{dic.channelMain}" itemValue="#{dic.id}"/>
                            </p:selectOneMenu>
                        </div>
                        <div class="ui-g-2">
                            <p:outputLabel value="结算方式"/>
                        </div>
                        <div class="ui-g-4">
                            <p:selectOneMenu value="#{businessIncomeListBean.settlementIncome.payMode}" disabled="true">
                                <f:selectItem itemLabel="- 请选择 -" itemValue=""
                                              noSelectionOption="true"/>
                                <f:selectItems
                                        value="#{businessIncomeListBean.dictionaries[DictionaryCode.SETTLEMENT_CATEGORY]}"
                                        var="dic"
                                        itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
                            </p:selectOneMenu>
                        </div>

                        <div class="ui-g-2">
                            <p:outputLabel value="结算模式"/>
                        </div>
                        <div class="ui-g-4">
                            <p:selectOneMenu value="#{businessIncomeListBean.settlementIncome.payType}" disabled="true"
                            >
                                <f:selectItem itemLabel="- 请选择 -" itemValue=""
                                              noSelectionOption="true"/>
                                <f:selectItems
                                        value="#{businessIncomeListBean.dictionaries[DictionaryCode.SETTLEMENT_CYCLE]}"
                                        var="dic"
                                        itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
                            </p:selectOneMenu>
                        </div>
                        <h:panelGroup rendered="#{businessIncomeListBean.settlementIncome.payMode==3
                                    || businessIncomeListBean.settlementIncome.payMode==4
                                    || businessIncomeListBean.settlementIncome.payMode==1
                                    || businessIncomeListBean.settlementIncome.payMode==2
                                    || businessIncomeListBean.settlementIncome.payMode==7}">
                            <div class="ui-g-4">
                                <p:outputLabel value="结算数"/>
                            </div>
                            <div class="ui-g-8">
                                <p:inputNumber value="#{businessIncomeListBean.settlementIncome.count}"
                                >
                                    <p:ajax listener="#{businessIncomeListBean.onChangeIncomeAmount()}" event="keyup"
                                            update="incomeAmount"/>
                                </p:inputNumber>
                            </div>
                        </h:panelGroup>

                        <div class="ui-g-2">
                            <p:outputLabel value="结算金额（总消耗）"/>
                        </div>
                        <div class="ui-g-4">
                            <p:inputNumber id="incomeAmount"
                                           value="#{businessIncomeListBean.settlementIncome.incomeAmount}"
                                           disabled="#{businessIncomeListBean.settlementIncome.payMode==1
                                    || businessIncomeListBean.settlementIncome.payMode==2
                                    || businessIncomeListBean.settlementIncome.payMode==3
                                    || businessIncomeListBean.settlementIncome.payMode==4
                                    || businessIncomeListBean.settlementIncome.payMode==7}">
                            </p:inputNumber>
                        </div>


                        <div class="ui-g-2">
                            <p:outputLabel value="结算日期"/>
                        </div>
                        <div class="ui-g-4">
                            <p:calendar
                                    value="#{businessIncomeListBean.settlementIncome.settlementTime}"
                                    locale="#{constants:get('LOCALE')}"
                                    timeZone="#{constants:get('TIME_ZONE')}"
                                    pattern="#{constants:get('DATE_FORMAT')}">
                                <p:ajax event="change" listener="#{businessIncomeListBean.onSelectDate()}"
                                        process="@this" update="moreSave"/>
                                <p:ajax event="dateSelect" listener="#{businessIncomeListBean.onSelectDate()}"
                                        process="@this" update="moreSave"/>
                            </p:calendar>
                        </div>
                        <h:panelGroup rendered="#{businessIncomeListBean.settlementIncome.payMode==1
                                    || businessIncomeListBean.settlementIncome.payMode==2 || businessIncomeListBean.settlementIncome.payMode==7}">
                            <div class="ui-g-2">
                                <p:outputLabel value="结算日期尾"/>
                            </div>
                            <div class="ui-g-4">
                                <p:calendar
                                        value="#{businessIncomeListBean.endTime}"
                                        locale="#{constants:get('LOCALE')}"
                                        timeZone="#{constants:get('TIME_ZONE')}"
                                        pattern="#{constants:get('DATE_FORMAT')}">
                                </p:calendar>
                            </div>
                        </h:panelGroup>

                        <h:panelGroup id="moreSave" rendered="#{businessIncomeListBean.enableMoreSave}">

                            <ui:repeat value="#{businessIncomeListBean.businessIncomes}" var="var">
                                <div class="ui-g-2">
                                    <p:outputLabel value="结算金额（总消耗）"/>
                                </div>
                                <div class="ui-g-4">
                                    <p:inputNumber
                                            value="#{var.incomeAmount}"
                                            disabled="#{businessIncomeListBean.settlementIncome.payMode==1
                                    || businessIncomeListBean.settlementIncome.payMode==2
                                    || businessIncomeListBean.settlementIncome.payMode==3
                                    || businessIncomeListBean.settlementIncome.payMode==4}">
                                    </p:inputNumber>
                                </div>
                                <div class="ui-g-2">
                                    <p:outputLabel value="结算日期"/>
                                </div>
                                <div class="ui-g-4">
                                    <p:calendar
                                            value="#{var.settlementTime}"
                                            locale="#{constants:get('LOCALE')}"
                                            timeZone="#{constants:get('TIME_ZONE')}"
                                            pattern="#{constants:get('DATE_FORMAT')}">
                                    </p:calendar>
                                </div>
                            </ui:repeat>

                        </h:panelGroup>


                        <div class="ui-g-12" style="padding: 0">
                            <div class="ui-g-2">
                                <p:outputLabel value="备注"/>
                            </div>
                            <div class="ui-g-10">
                                <p:inputText value="#{businessIncomeListBean.settlementIncome.remark}"/>
                            </div>
                        </div>

                        <div class="ui-g-12">
                            <p:outputLabel for="openRec" value="一周导入模式  " style="float: left"/>
                            <p:inputSwitch id="openRec" onLabel="是" offLabel="否" style="float: left"
                                           value="#{businessIncomeListBean.enableMoreSave}"
                                           rendered="#{(businessIncomeListBean.settlementIncome.payMode==5
                                    || businessIncomeListBean.settlementIncome.payMode==6)}">
                                <p:ajax event="change" update="add-dialog"/>
                            </p:inputSwitch>
                            <p:commandButton value="保存" style="float: right"
                                             actionListener="#{businessIncomeListBean.onSave()}"
                                             process="@this add-dialog" rendered="#{security:areAllGranted('BUSINESS_SECURITY')}"/>
                            <p:commandButton value="自动计算" style="float: right"
                                             actionListener="#{businessIncomeListBean.autoCount()}"
                                             rendered="#{(businessIncomeListBean.settlementIncome.payMode==1
                                    || businessIncomeListBean.settlementIncome.payMode==2 || businessIncomeListBean.settlementIncome.payMode==7) and security:areAllGranted('BUSINESS_ATUO')}"
                                             process="@this add-dialog"/>
                        </div>
                    </div>
                </p:outputPanel>
            </p:dialog>
        </h:form>
    </ui:define>
</ui:composition>